//
//  InAppTableCell.m
//  iStock Global
//
//  Created by Andy on 2011/3/8.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "InAppTableCell.h"
#import "tablecellgradent.h"
#import <QuartzCore/QuartzCore.h>

@implementation InAppTableCell
@synthesize cell1;
@synthesize cell2;
 

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
        // Initialization code
		cell1=[[UILabel alloc]initWithFrame:CGRectMake(5, 10, 245, 20)];
		cell2=[[UILabel alloc]initWithFrame:CGRectMake(250,10,80, 20)];
	   	
		 
		cell1.textColor=[UIColor blackColor];
		cell2.textColor=[UIColor blackColor];
	  
		
		//讓底色透明
		cell1.backgroundColor=[UIColor clearColor];
		cell2.backgroundColor=[UIColor clearColor];
	 
		
		//設定cell backgroundView 的底色漸層次 設定view tablecellgrade.h tablecellgrade.m
		//self.backgroundView = [[[tablecellgradent alloc] initWithFrame:CGRectZero] autorelease];		
		[self.contentView addSubview:cell1];
		[self.contentView addSubview:cell2];	
		 		
		
    }
    return self;
}

- (void)setPosition:(UACellBackgroundViewPosition)newPosition {	
    [(tablecellgradent *)self.backgroundView setPosition:newPosition];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
	
    [super setSelected:selected animated:animated];
	
    // Configure the view for the selected state
}


- (void)dealloc {
	[cell1 release];
	[cell2 release];
	 
    [super dealloc];
}


@end
